package com.sfac.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
// 加载读取非全局配置文件
@PropertySource(value = "classpath:config/applicationtest.properties")
public class ApplicationTest {

    @Value("${tl.name}")
    private String name;
    @Value("${tl.age}")
    private String age;

    public ApplicationTest() {
    }

    public ApplicationTest(String name, String age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }
}
